//function fixednav(){
//	var scroll = document.body.scrollTop;
//	var top = document.getElementById("top");
//	if(scroll>50){
//		top.style.position = "fixed";
////		nav.style.marginTop = "500";
//		top.style.zIndex = "999";
//	}else{
//		top.style.position = "static";
//	}
//}
function over(num){
	var over = document.getElementsByTagName("img")[1];
	over.src = "img/reg(after).png";
	
	var hot = "hot"+num;
	if(num==1){
		var hot1 = document.getElementById("hot"+num);
		hot1.src = "img/moremobileQQ1.png";
	}else if(num==2){
		var hot2 = document.getElementById("hot"+num);
		hot2.src = "img/morepcQQ1.png";
	}else if(num==3){
		var hot3 = document.getElementById("hot"+num);
		hot3.src = "img/moremacQQ1.png";
	}else if(num==4){
		var hot4 = document.getElementById("hot"+num);
		hot4.src = "img/morepadQQ1.png";
	}
}
function out(num){
	var out = document.getElementsByTagName("img")[1];
	out.src = "img/reg(before).png";
	
	var hot = "hot"+num;
	if(num==1){
		var hot1 = document.getElementById("hot"+num);
		hot1.src = "img/moremobileQQ.png";
	}else if(num==2){
		var hot2 = document.getElementById("hot"+num);
		hot2.src = "img/morepcQQ.png";
	}else if(num==3){
		var hot3 = document.getElementById("hot"+num);
		hot3.src = "img/moremacQQ.png";
	}else if(num==4){
		var hot4 = document.getElementById("hot"+num);
		hot4.src = "img/morepadQQ.png";
	}
}
function switchi(){
	var a = document.getElementsByClassName("span1")[0];
	var b = document.getElementsByClassName("span2")[0];
	a.style.color = "rgb(150,150,150)";
	b.style.color = "black";
	document.getElementsByClassName("androidQQ")[0].style.visibility = "hidden";
	document.getElementsByClassName("iphoneQQ")[0].style.visibility = "visible";
}
function switcha(){
	var a = document.getElementsByClassName("span1")[0];
	var b = document.getElementsByClassName("span2")[0];
	a.style.color = "black";
	b.style.color = "rgb(150,150,150)";
	document.getElementsByClassName("androidQQ")[0].style.visibility = "visible";
	document.getElementsByClassName("iphoneQQ")[0].style.visibility = "hidden";
}
function openMenu(){
	document.getElementById("menu").style.display = "block";
}
function closeMenu(){
	document.getElementById("menu").style.display = "none";
}
